diff options
author | 2022-11-21 16:50:32 +0100 | |
---|---|---|
committer | 2022-12-08 13:28:57 +0000 | |
commit | 849d09a81907f16d8ccc6019b8baf86a304b730c (patch) | |
tree | 9f85c789e9ac154a3363bcd7a5c0230e8b5fee3d /runtime/reference_table.h | |
parent | 01b7cad2a160e9d192eb7ddd5303255ab4c15278 (diff) |
Split local reference table out of `IndirectReferenceTable`.
In preparation for rewriting the representation of local JNI
references, split their implementation out of the shared
`IndirectReferenceTable` which shall be used only for global
and weak global references going forward. Make the new
`LocalReferenceTable` always resizable (remove the enum
`ResizableCapacity`) and rename the memory mappings for LRT
to "local ref table".
Remove `IndirectReferenceTable` code that was needed only
for local references, make these tables non-resizable.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 172332525
Change-Id: I87f02c93694577d1b577c4114fa86c2cd23b4c97
Diffstat (limited to 'runtime/reference_table.h')
-rw-r--r-- | runtime/reference_table.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/reference_table.h b/runtime/reference_table.h index 2ffd866ce7..b204533c36 100644 --- a/runtime/reference_table.h +++ b/runtime/reference_table.h @@ -28,6 +28,9 @@ #include "obj_ptr.h" namespace art { +namespace jni { +class LocalReferenceTable; +} // namespace jni namespace mirror { class Object; } // namespace mirror @@ -61,6 +64,7 @@ class ReferenceTable { REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Locks::alloc_tracker_lock_); friend class IndirectReferenceTable; // For Dump. + friend class jni::LocalReferenceTable; // For Dump. std::string name_; Table entries_; |