OSDN Git Service

Disallow modifying java.lang.String
authorAlex Light <allight@google.com>
Tue, 21 Feb 2017 23:00:48 +0000 (15:00 -0800)
committerAlex Light <allight@google.com>
Wed, 22 Feb 2017 23:12:10 +0000 (23:12 +0000)
commit09f274f60242ccff9246f19650dbde8f28fdf21a
treeb3302152461a10129ef90da6f22960d7a9a4e0e0
parent74e03763ce9de4b6391d8fce9631abd252e27e89
Disallow modifying java.lang.String

The optimizations we do for j.l.String mean that if agents put
profiling code j.l.String they will see a lot of surprising behaviors
(for example the String constructor is never called).

Bug: 35396224
Test: ./test/testrunner/testrunner.py --host -j40
Change-Id: I30df68186f30f7311e2a5e36b18d807d8e91a596
runtime/openjdkjvmti/ti_redefine.cc
test/912-classes/expected.txt
test/912-classes/src/Main.java