OSDN Git Service

Split ArtJvmtiEvent::kClassFileLoadHook in two.
authorAlex Light <allight@google.com>
Wed, 18 Jan 2017 19:17:47 +0000 (11:17 -0800)
committerAlex Light <allight@google.com>
Wed, 18 Jan 2017 22:43:44 +0000 (14:43 -0800)
commit73afd322e0e55ec4cda570cc240e1f22db215851
tree5fe84b984d7521ae6033f93403db9c0c0d7e1a5f
parent40d87f450e6c1d38edd539405d4e79e4c64ad7c6
Split ArtJvmtiEvent::kClassFileLoadHook in two.

Since the ClassFileLoadHook event is sent to different environments
based on when it is invoked we split the event in two behind the
scenes. The event dispatcher is responsible for making sure that
either or both of the appropriate underlying events are invoked when a
JVMTI_EVENT_CLASS_FILE_LOAD_HOOK is sent.

We also make sure to modify the EventHandler so it sends the correct
events in the correct places when an environment changes its
capabilities.

Bug: 32369913
Bug: 31684920

Test: mma -j40 test-art-host

Change-Id: I82567fc66debe0b658e8d7fced6284a8c4355b7a
runtime/openjdkjvmti/OpenjdkJvmTi.cc
runtime/openjdkjvmti/events-inl.h
runtime/openjdkjvmti/events.cc
runtime/openjdkjvmti/events.h