diff --git a/lib/android.js b/lib/android.js index 41816b3..06b2adc 100644 --- a/lib/android.js +++ b/lib/android.js @@ -591,8 +591,9 @@ function _getArtRuntimeSpec (api) { * gc::Heap* heap_; <-- we need to find this * std::unique_ptr jit_arena_pool_; <----- API level >= 24 * std::unique_ptr arena_pool_; __ - * std::unique_ptr low_4gb_arena_pool_; <--|__ API level >= 23 + * std::unique_ptr low_4gb_arena_pool_/linear_alloc_arena_pool_; <--|__ API level >= 23 * std::unique_ptr linear_alloc_; \_ + * std::atomic startup_linear_alloc_;<----- API level >= 34 * size_t max_spins_before_thin_lock_inflation_; * MonitorList* monitor_list_; * MonitorPool* monitor_pool_; @@ -644,7 +645,9 @@ function _getArtRuntimeSpec (api) { const threadListOffset = internTableOffset - pointerSize; let heapOffset; - if (apiLevel >= 24) { + if (apiLevel >= 34) { + heapOffset = threadListOffset - (9 * pointerSize); + } else if (apiLevel >= 24) { heapOffset = threadListOffset - (8 * pointerSize); } else if (apiLevel >= 23) { heapOffset = threadListOffset - (7 * pointerSize);