Bug 1602882 - Remove |JSContext::checkMallocGCPressure| as unused and undefined. r=sfink
authorJeff Walden <jwalden@mit.edu>
Tue, 10 Dec 2019 19:54:44 +0000
changeset 506316 8b88919d7bd105f01caeab317698e21aeac707b6
parent 506315 160a1414094801bf8bad94166d5aa6ac14a6ca3a
child 506317 9c2d6b0f339415fa1d085073dc43b912ec8a638e
push id36902
push useraciure@mozilla.com
push dateWed, 11 Dec 2019 03:34:51 +0000
treeherdermozilla-central@7635669b8d72 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1602882
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1602882 - Remove |JSContext::checkMallocGCPressure| as unused and undefined. r=sfink Differential Revision: https://phabricator.services.mozilla.com/D56592
js/src/vm/JSContext.h
--- a/js/src/vm/JSContext.h
+++ b/js/src/vm/JSContext.h
@@ -818,25 +818,16 @@ struct JSContext : public JS::RootingCon
 
   JS_FRIEND_API size_t
   sizeOfExcludingThis(mozilla::MallocSizeOf mallocSizeOf) const;
 
   void trace(JSTracer* trc);
 
   inline js::RuntimeCaches& caches();
 
- private:
-  /*
-   * The allocation code calls the function to indicate either OOM failure
-   * when p is null or that a memory pressure counter has reached some
-   * threshold when p is not null. The function takes the pointer and not
-   * a boolean flag to minimize the amount of code in its inlined callers.
-   */
-  JS_FRIEND_API void checkMallocGCPressure(void* p);
-
  public:
   using InterruptCallbackVector =
       js::Vector<JSInterruptCallback, 2, js::SystemAllocPolicy>;
 
  private:
   js::ContextData<InterruptCallbackVector> interruptCallbacks_;
 
  public: