summaryrefslogtreecommitdiff
path: root/openjdkjvmti/ti_heap.cc
diff options
context:
space:
mode:
author Hans Boehm <hboehm@google.com> 2024-08-19 21:32:19 +0000
committer Hans Boehm <hboehm@google.com> 2024-08-19 23:48:03 +0000
commit7c89f49c2c542df1a5780fb851e2ef0e0909f48f (patch)
tree02bc90403e3f56bbb59c7fb1d89b785cd8257b28 /openjdkjvmti/ti_heap.cc
parent806ace6dfa77cd65b05b20affb6a7e7072dcc845 (diff)
Revert "Object.clone() allocates more movable objects"
This reverts commit a5001fed23788c966fd87048d7f17ba8c0b51914. Reason for revert: b/360363656 Change-Id: Ibfea46976bb6434d728c69160edb5904ab7708aa
Diffstat (limited to 'openjdkjvmti/ti_heap.cc')
-rw-r--r--openjdkjvmti/ti_heap.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/openjdkjvmti/ti_heap.cc b/openjdkjvmti/ti_heap.cc
index f8589f1d1a..80bfa0ff43 100644
--- a/openjdkjvmti/ti_heap.cc
+++ b/openjdkjvmti/ti_heap.cc
@@ -1916,10 +1916,6 @@ jvmtiError HeapExtensions::ChangeArraySize(jvmtiEnv* env, jobject arr, jsize new
art::StackHandleScope<2> hs(self);
art::Handle<art::mirror::Array> old_arr(hs.NewHandle(soa.Decode<art::mirror::Array>(arr)));
art::MutableHandle<art::mirror::Array> new_arr(hs.NewHandle<art::mirror::Array>(nullptr));
- if (!art::Runtime::Current()->GetHeap()->PossiblyAllocatedMovable(old_arr.Get())) {
- JVMTI_LOG(INFO, env) << "Cannot resize a nonmovable array";
- return ERR(ILLEGAL_ARGUMENT);
- }
if (klass->IsObjectArrayClass()) {
new_arr.Assign(
art::mirror::ObjectArray<art::mirror::Object>::Alloc(self, old_arr->GetClass(), new_size));