Bug 1380768 (part 1) - Update comments to reflect API changes and a changed, r=sfink.
authorPaul Bone <pbone@mozilla.com>
Fri, 21 Jul 2017 15:56:11 +1000
changeset 370852 30c0fb1d099700f028316ee30ce7285134dcd99c
parent 370851 1c61346d6f447a7dcc405aeea12ed7941c398764
child 370853 974fd5c79451c5bd35ceafca95c2ef2563fd3bd1
push id32235
push userkwierso@gmail.com
push dateWed, 26 Jul 2017 02:04:48 +0000
treeherdermozilla-central@9eddb0a92820 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1380768
milestone56.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 1380768 (part 1) - Update comments to reflect API changes and a changed, r=sfink.
js/public/HeapAPI.h
js/public/Initialization.h
js/src/jsapi.h
--- a/js/public/HeapAPI.h
+++ b/js/public/HeapAPI.h
@@ -99,17 +99,17 @@ MOZ_ALWAYS_INLINE bool IsInsideNursery(c
 } /* namespace js */
 
 namespace JS {
 struct Zone;
 
 /* Default size for the generational nursery in bytes. */
 const uint32_t DefaultNurseryBytes = 16 * js::gc::ChunkSize;
 
-/* Default maximum heap size in bytes to pass to JS_NewRuntime(). */
+/* Default maximum heap size in bytes to pass to JS_NewContext(). */
 const uint32_t DefaultHeapMaxBytes = 32 * 1024 * 1024;
 
 namespace shadow {
 
 struct Zone
 {
     enum GCState : uint8_t {
         NoGC,
--- a/js/public/Initialization.h
+++ b/js/public/Initialization.h
@@ -45,17 +45,17 @@ typedef void (*JS_ICUFreeFn)(const void*
  */
 extern JS_PUBLIC_API(bool)
 JS_SetICUMemoryFunctions(JS_ICUAllocFn allocFn,
                          JS_ICUReallocFn reallocFn,
                          JS_ICUFreeFn freeFn);
 
 /**
  * Initialize SpiderMonkey, returning true only if initialization succeeded.
- * Once this method has succeeded, it is safe to call JS_NewRuntime and other
+ * Once this method has succeeded, it is safe to call JS_NewContext and other
  * JSAPI methods.
  *
  * This method must be called before any other JSAPI method is used on any
  * thread.  Once it has been used, it is safe to call any JSAPI method, and it
  * remains safe to do so until JS_ShutDown is correctly called.
  *
  * It is currently not possible to initialize SpiderMonkey multiple times (that
  * is, calling JS_Init/JSAPI methods/JS_ShutDown in that order, then doing so
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -994,17 +994,17 @@ JS_IsBuiltinFunctionConstructor(JSFuncti
 /************************************************************************/
 
 /*
  * Locking, contexts, and memory allocation.
  *
  * It is important that SpiderMonkey be initialized, and the first context
  * be created, in a single-threaded fashion.  Otherwise the behavior of the
  * library is undefined.
- * See: http://developer.mozilla.org/en/docs/Category:JSAPI_Reference
+ * See: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference
  */
 
 // Create a new runtime, with a single cooperative context for this thread.
 // On success, the new context will be the active context for the runtime.
 extern JS_PUBLIC_API(JSContext*)
 JS_NewContext(uint32_t maxbytes,
               uint32_t maxNurseryBytes = JS::DefaultNurseryBytes,
               JSRuntime* parentRuntime = nullptr);