-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gjs_context_gc() from upstream git commit 059f6a13bb5ed18060aa27b…
…be900575e6966efb0 ok ajacoutot@
- Loading branch information
Showing
3 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
$OpenBSD: patch-gjs_context_c,v 1.1 2011/09/21 15:30:23 robert Exp $ | ||
|
||
From 059f6a13bb5ed18060aa27bbe900575e6966efb0 Mon Sep 17 00:00:00 2001 | ||
From: Colin Walters <[email protected]> | ||
Date: Fri, 16 Sep 2011 14:28:16 +0000 | ||
Subject: context: Add gjs_context_gc() wrapper | ||
|
||
--- gjs/context.c.orig Fri Aug 12 09:33:26 2011 | ||
+++ gjs/context.c Wed Sep 21 16:41:41 2011 | ||
@@ -484,6 +484,19 @@ out: | ||
return success; | ||
} | ||
|
||
+/** | ||
+ * gjs_context_gc: | ||
+ * @context: a #GjsContext | ||
+ * | ||
+ * Initiate a full GC; may or may not block until complete. This | ||
+ * function just calls Spidermonkey JS_GC(). | ||
+ */ | ||
+void | ||
+gjs_context_gc (GjsContext *context) | ||
+{ | ||
+ JS_GC(context->context); | ||
+} | ||
+ | ||
static JSBool | ||
gjs_locale_to_unicode (JSContext *context, | ||
#ifdef JS_LOCALETOUNICODE_NEEDS_CONST_CHAR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$OpenBSD: patch-gjs_context_h,v 1.1 2011/09/21 15:30:23 robert Exp $ | ||
|
||
From 059f6a13bb5ed18060aa27bbe900575e6966efb0 Mon Sep 17 00:00:00 2001 | ||
From: Colin Walters <[email protected]> | ||
Date: Fri, 16 Sep 2011 14:28:16 +0000 | ||
Subject: context: Add gjs_context_gc() wrapper | ||
|
||
--- gjs/context.h.orig Fri Jun 10 00:31:56 2011 | ||
+++ gjs/context.h Wed Sep 21 16:41:41 2011 | ||
@@ -75,6 +75,8 @@ void gjs_context_print_stack_stderr (Gjs | ||
|
||
void gjs_context_maybe_gc (GjsContext *context); | ||
|
||
+void gjs_context_gc (GjsContext *context); | ||
+ | ||
void gjs_dumpstack (void); | ||
|
||
G_END_DECLS |