OSDN Git Service

ART: Fix alloc-dealloc mismatch
authorAndreas Gampe <agampe@google.com>
Sat, 12 Nov 2016 01:11:25 +0000 (17:11 -0800)
committerAndreas Gampe <agampe@google.com>
Sat, 12 Nov 2016 01:11:25 +0000 (17:11 -0800)
Mark type as array.

Bug: 31098551
Test: m test-art-host
Change-Id: Ia27a997e838a408cc68f0d9fe58734155e709e85

runtime/jit/offline_profiling_info.h

index 0b26f9b..fdca078 100644 (file)
@@ -152,7 +152,7 @@ class ProfileCompilationInfo {
     uint8_t* Get() { return storage_.get(); }
 
    private:
-    std::unique_ptr<uint8_t> storage_;
+    std::unique_ptr<uint8_t[]> storage_;
     uint8_t* ptr_current_;
     uint8_t* ptr_end_;
   };