Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
c7a73a9e
Commit
c7a73a9e
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added JAVASCRIPT_THREAD_STACK definition to sbbsdefs.h
(for JS engine thread stack limit).
parent
f9b03d76
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/jsexec.c
+2
-3
2 additions, 3 deletions
src/sbbs3/jsexec.c
src/sbbs3/sbbsdefs.h
+1
-0
1 addition, 0 deletions
src/sbbs3/sbbsdefs.h
with
3 additions
and
3 deletions
src/sbbs3/jsexec.c
+
2
−
3
View file @
c7a73a9e
...
@@ -47,7 +47,6 @@
...
@@ -47,7 +47,6 @@
#define DEFAULT_LOG_MASK 0xff
/* Display all LOG levels */
#define DEFAULT_LOG_MASK 0xff
/* Display all LOG levels */
#define DEFAULT_ERR_LOG_LVL LOG_WARNING
#define DEFAULT_ERR_LOG_LVL LOG_WARNING
#define DEFAULT_STACK_LIMIT (32*1024)
JSRuntime
*
js_runtime
;
JSRuntime
*
js_runtime
;
JSContext
*
js_cx
;
JSContext
*
js_cx
;
...
@@ -56,7 +55,7 @@ js_branch_t branch;
...
@@ -56,7 +55,7 @@ js_branch_t branch;
scfg_t
scfg
;
scfg_t
scfg
;
ulong
js_max_bytes
=
JAVASCRIPT_MAX_BYTES
;
ulong
js_max_bytes
=
JAVASCRIPT_MAX_BYTES
;
ulong
js_cx_stack
=
JAVASCRIPT_CONTEXT_STACK
;
ulong
js_cx_stack
=
JAVASCRIPT_CONTEXT_STACK
;
ulong
stack_limit
=
DEFAULT_STACK_LIMIT
;
ulong
stack_limit
=
JAVASCRIPT_THREAD_STACK
;
FILE
*
confp
;
FILE
*
confp
;
FILE
*
errfp
;
FILE
*
errfp
;
FILE
*
nulfp
;
FILE
*
nulfp
;
...
@@ -115,7 +114,7 @@ void usage(FILE* fp)
...
@@ -115,7 +114,7 @@ void usage(FILE* fp)
"
\t
-! wait for keypress (pause) on error
\n
"
"
\t
-! wait for keypress (pause) on error
\n
"
,
JAVASCRIPT_MAX_BYTES
,
JAVASCRIPT_MAX_BYTES
,
JAVASCRIPT_CONTEXT_STACK
,
JAVASCRIPT_CONTEXT_STACK
,
DEFAULT_STACK_LIMIT
,
JAVASCRIPT_THREAD_STACK
,
JAVASCRIPT_BRANCH_LIMIT
,
JAVASCRIPT_BRANCH_LIMIT
,
JAVASCRIPT_YIELD_INTERVAL
,
JAVASCRIPT_YIELD_INTERVAL
,
JAVASCRIPT_GC_INTERVAL
,
JAVASCRIPT_GC_INTERVAL
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbsdefs.h
+
1
−
0
View file @
c7a73a9e
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
#define JAVASCRIPT_MAX_BYTES (8*1024*1024)
#define JAVASCRIPT_MAX_BYTES (8*1024*1024)
#define JAVASCRIPT_CONTEXT_STACK (16*1024)
#define JAVASCRIPT_CONTEXT_STACK (16*1024)
#define JAVASCRIPT_THREAD_STACK (32*1024)
#define JAVASCRIPT_BRANCH_LIMIT 99999999
#define JAVASCRIPT_BRANCH_LIMIT 99999999
#define JAVASCRIPT_YIELD_INTERVAL 10000
#define JAVASCRIPT_YIELD_INTERVAL 10000
#define JAVASCRIPT_GC_INTERVAL 100
#define JAVASCRIPT_GC_INTERVAL 100
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment