Browse Source

update native_mate and use the MarkHighMemoryUsage API to speed up garbage collection

Heilig Benedek 8 years ago
parent
commit
576b702e8b
2 changed files with 3 additions and 1 deletions
  1. 2 0
      atom/common/api/atom_api_native_image.cc
  2. 1 1
      vendor/native_mate

+ 2 - 0
atom/common/api/atom_api_native_image.cc

@@ -204,6 +204,7 @@ NativeImage::NativeImage(v8::Isolate* isolate, const gfx::Image& image)
   Init(isolate_);
   isolate_->AdjustAmountOfExternalAllocatedMemory(
     image_.Width() * image_.Height() * 4);
+  MarkHighMemoryUsage();
 }
 
 #if defined(OS_WIN)
@@ -216,6 +217,7 @@ NativeImage::NativeImage(v8::Isolate* isolate, const base::FilePath& hicon_path)
   Init(isolate);
   isolate_->AdjustAmountOfExternalAllocatedMemory(
     image_.Width() * image_.Height() * 4);
+  MarkHighMemoryUsage();
 }
 #endif
 

+ 1 - 1
vendor/native_mate

@@ -1 +1 @@
-Subproject commit fd0e7dc4ab778f0d1ccda6c9640464ea06ee771e
+Subproject commit 7d9c1a80f025f4c46f7da8ea73246fe0f1968579