Sami Vaarala
c75c6f2e31
Test for duk_push_heapptr() for not-yet-finalized
8 years ago
Sami Vaarala
1b562eec7e
Merge pull request #1455 from svaarala/markandsweep-finalize-list-temproot
Include finalize_list in mark-and-sweep TEMPROOT handling
8 years ago
Sami Vaarala
8246c63e45
Releases: finalize_list TEMPROOTs
8 years ago
Sami Vaarala
13fee1d008
Makeduk commented out m&s reclimit
8 years ago
Sami Vaarala
111c0eac97
Check finalize_list also for temproots
This wasn't necessary before: finalize_list only contained unreachable
objects so nothing could point to them while we marked heap_allocated.
But when duk_push_heapptr() is allowed to push unreachable pointers
(which are pending finalization), it's possible for an object in
heap_allocated to point to an object on finalize_list, which also means
that the latter object can get a TEMPROOT flag.
8 years ago
Sami Vaarala
86a0b3301f
Merge pull request #1454 from svaarala/shared-object-in-list-asserts
Shared assert helper for 'in heap_allocated'
8 years ago
Sami Vaarala
0d41dba2d0
Releases: ptr-in-heap-allocated
8 years ago
Sami Vaarala
f8384d9520
Shared assert helper for 'in heap_allocated'
8 years ago
Sami Vaarala
0e3fb533be
Merge pull request #1451 from svaarala/fix-finalize-list-refcount-bump
Preincrement refcount on finalize_list insert to avoid refzero for pending objects
8 years ago
Sami Vaarala
7674dba826
Releases: finalizer rework
8 years ago
Sami Vaarala
0edffb70e3
Side effect doc refcount bump note
8 years ago
Sami Vaarala
6aade4f7bf
Bump refcounts on finalize_list insert
8 years ago
Sami Vaarala
929e969baf
Testcase for finalize_list refzero case
8 years ago
Sami Vaarala
18ff0e4d4d
Merge pull request #709 from svaarala/finalizer-torture-improvements
Forced stack reallocs in finalizer torture
8 years ago
Sami Vaarala
9228e9d7bf
Releases: stack reallocs in finalizer torture
8 years ago
Sami Vaarala
cc02912201
Forced stack reallocs in finalizer torture
9 years ago
Sami Vaarala
97ea26d51e
Merge pull request #1453 from svaarala/fix-duk-inspect-stale-tv
Fix duk_api_inspect() stale 'tv' pointer
8 years ago
Sami Vaarala
f5529d2e7c
Releases: duk_inspect_value() stale 'tv'
8 years ago
Sami Vaarala
71a05b79ce
Fix duk_api_inspect() stale 'tv' pointer
A pointer to the value stack was obtained before duk_push_bare_object()
and used after the push. If value stack resize happens as a side effect
of the push (mark-and-sweep, finalizers, etc) the 'tv' pointer could be
stale. Found using torture tests.
8 years ago
Sami Vaarala
5ef5eecd57
Merge pull request #1450 from svaarala/remove-compile-flag-translation
Remove duk_compile() flag translation
8 years ago
Sami Vaarala
1981f56fe8
Releases: avoid DUK_COMPILE_xxx flag translation
8 years ago
Sami Vaarala
e11753082f
Use DUK_COMPILE_xxx flags are internally
Avoids unnecessary translation.
8 years ago
Sami Vaarala
1304fe039a
Merge pull request #1452 from svaarala/module-node-shebang-support
Add shebang support to module-node
8 years ago
Sami Vaarala
f4b233661b
Releases: module-node shebang
8 years ago
Sami Vaarala
919527f3c2
Add shebang support to module-node
duk_compile() + DUK_COMPILE_SHEBANG is not enough for modules because there is
a module function wrapper which offsets the shebang in the module source when
Duktape actually sees it.
8 years ago
Sami Vaarala
d8066faf86
Merge pull request #1380 from svaarala/add-shebang-comment-syntax
Add shebang comment parsing
8 years ago
Sami Vaarala
221373eac0
Releases: shebang comment
8 years ago
Sami Vaarala
65fc808d92
Website shebang comment note
8 years ago
Sami Vaarala
3f1317bf35
API doc for DUK_COMPILE_SHEBANG
8 years ago
Sami Vaarala
a7df4ad91b
Allow shebang for 'duk' compile inputs
8 years ago
Sami Vaarala
88150a42ce
Test coverage for shebang comments
8 years ago
Sami Vaarala
cb1c8957d4
Add shebang comment parsing (on first line only)
8 years ago
Sami Vaarala
c9a4f73fdf
Config option for shebang comments
8 years ago
Sami Vaarala
074321639f
Merge pull request #1427 from svaarala/rework-side-effect-handling
Rework refzero, finalizer, and side effect handling
8 years ago
Sami Vaarala
2262bbc12a
Releases: side effect rework
8 years ago
Sami Vaarala
f19f751a8d
Add draft 2.1.0 release notes
8 years ago
Sami Vaarala
d382a87a7a
Uniform exit code (1) for 'duk' errors
8 years ago
Sami Vaarala
45ca00d53b
Add a minimal Travis error injection test
Prototype with heap allocation error injection which is a typical cold
path that is difficult to exercise in a black box fashion.
8 years ago
Sami Vaarala
6ab207d6df
Website finalizer clarifications
8 years ago
Sami Vaarala
d73c9e98b4
Dist/config changes for source files
8 years ago
Sami Vaarala
7c3655df7e
Build option changes for side effect rework
8 years ago
Sami Vaarala
55dbf32393
Rework side effect protections and finalization
Several small reworks in refzero, finalizer, mark-and-sweep, and error
handling to avoid side effect issues.
8 years ago
Sami Vaarala
2f4ac2865d
Config option changes for side effect reworks
8 years ago
Sami Vaarala
769aa39ef2
Testcase changes for side effect reworks
8 years ago
Sami Vaarala
51ba439c5a
Internal docs for side effect reworks
* Add a separate side effects document giving some background details.
* Release checklist update for torture options.
8 years ago
Sami Vaarala
3416196751
Merge pull request #1447 from svaarala/releases-1.8-prng-mixin
Releases: 1.8 PRNG Date mix-in
8 years ago
Sami Vaarala
9bc38f5845
Releases: 1.8 prng mixin
8 years ago
Sami Vaarala
57d5e0c665
Merge pull request #1441 from svaarala/global-binding-configurable
Global binding configurable and disabled by default
8 years ago
Sami Vaarala
4b0a68f6f5
Releases: global experimental
8 years ago
Sami Vaarala
288d837195
Add global binding to 'duk' test config
8 years ago