Skip to content

Commit

Permalink
Add gjs_context_gc() from upstream git commit 059f6a13bb5ed18060aa27b…
Browse files Browse the repository at this point in the history
…be900575e6966efb0

ok ajacoutot@
  • Loading branch information
rnagy committed Sep 21, 2011
1 parent 8ab438b commit abd4180
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x11/gnome/gjs/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# $OpenBSD: Makefile,v 1.5 2011/09/21 14:00:19 jasper Exp $
# $OpenBSD: Makefile,v 1.6 2011/09/21 15:30:23 robert Exp $

COMMENT= Javascript bindings for GNOME

GNOME_PROJECT= gjs
GNOME_VERSION= 1.29.17

REVISION= 0

SHARED_LIBS += gjs 1.0 # 0.0
SHARED_LIBS += gjs-dbus 1.0 # 0.0
SHARED_LIBS += gjs-gdbus 1.0 # 0.0
Expand Down
29 changes: 29 additions & 0 deletions x11/gnome/gjs/patches/patch-gjs_context_c
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
18 changes: 18 additions & 0 deletions x11/gnome/gjs/patches/patch-gjs_context_h
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

0 comments on commit abd4180

Please sign in to comment.