OSDN Git Service

Remove some obsolete TODO comments.
authorAlex Light <allight@google.com>
Mon, 10 Apr 2017 17:10:10 +0000 (10:10 -0700)
committerAlex Light <allight@google.com>
Mon, 10 Apr 2017 17:10:10 +0000 (10:10 -0700)
Test: ./test.py --host -j40

Bug: 31455788
Change-Id: I66ebf053a8eb454a32905f5f5bd5be1fb1d2cc3c

runtime/openjdkjvmti/ti_redefine.h

index 586259a..5e31627 100644 (file)
@@ -69,15 +69,12 @@ class RedefinitionDataHolder;
 class RedefinitionDataIter;
 
 // Class that can redefine a single class's methods.
-// TODO We should really make this be driven by an outside class so we can do multiple classes at
-// the same time and have less required cleanup.
 class Redefiner {
  public:
   // Redefine the given classes with the given dex data. Note this function does not take ownership
   // of the dex_data pointers. It is not used after this call however and may be freed if desired.
   // The caller is responsible for freeing it. The runtime makes its own copy of the data. This
   // function does not call the transformation events.
-  // TODO Check modified flag of the definitions.
   static jvmtiError RedefineClassesDirect(ArtJvmTiEnv* env,
                                           art::Runtime* runtime,
                                           art::Thread* self,
@@ -87,7 +84,6 @@ class Redefiner {
   // Redefine the given classes with the given dex data. Note this function does not take ownership
   // of the dex_data pointers. It is not used after this call however and may be freed if desired.
   // The caller is responsible for freeing it. The runtime makes its own copy of the data.
-  // TODO This function should call the transformation events.
   static jvmtiError RedefineClasses(ArtJvmTiEnv* env,
                                     EventHandler* event_handler,
                                     art::Runtime* runtime,
@@ -164,8 +160,6 @@ class Redefiner {
         REQUIRES_SHARED(art::Locks::mutator_lock_);
 
     // Preallocates all needed allocations in klass so that we can pause execution safely.
-    // TODO We should be able to free the arrays if they end up not being used. Investigate doing
-    // this in the future. For now we will just take the memory hit.
     bool EnsureClassAllocationsFinished(/*out*/RedefinitionDataIter* data)
         REQUIRES_SHARED(art::Locks::mutator_lock_);
 
@@ -222,7 +216,6 @@ class Redefiner {
   // mirror::Class difficult and confusing.
   std::string* error_msg_;
 
-  // TODO Maybe change jclass to a mirror::Class
   Redefiner(art::Runtime* runtime,
             art::Thread* self,
             std::string* error_msg)
@@ -239,7 +232,6 @@ class Redefiner {
                                               /*out*/std::string* error_msg)
       REQUIRES_SHARED(art::Locks::mutator_lock_);
 
-  // TODO Put on all the lock qualifiers.
   jvmtiError Run() REQUIRES_SHARED(art::Locks::mutator_lock_);
 
   bool CheckAllRedefinitionAreValid() REQUIRES_SHARED(art::Locks::mutator_lock_);