Commit Graph

230 Commits

Author SHA1 Message Date
akhil a426573b6e move initialization into static block to fix leak found by batsatt 2014-10-28 16:09:16 -07:00
akhil ddd6ec7a23 use es6 features as they become available, falling back gracefully 2014-10-20 14:32:05 -07:00
akhil e243901ea6 revert finalization of this class to allow overriding by embedders 2014-10-17 10:40:55 -07:00
akhil c87fe62d35 fix findbugs warnings 2014-10-16 20:46:49 -07:00
akhil 52e6c8ac3e cleanup captureStackTrace and include Error name and message 2014-10-07 14:10:32 -07:00
akhil a1bd224dfa implement Error.prepareStackTrace and stackTraceLimit 2014-10-02 17:05:42 -07:00
Bryan Atsatt 8ca8567638 Add no-arg interrupt() overload. 2014-10-02 09:46:32 -07:00
Bryan Atsatt 450bd4835d Fix Server.close() so finalization script runs on event thread. 2014-10-01 14:09:39 -07:00
Bryan Atsatt 7bac6636e0 Improve thread mismatch assertion messages. Ensure process 'exit' event emitted on server.close() 2014-09-30 17:57:38 -07:00
akhil 0bafa573e8 also report uv, http_parser, java and vm versions 2014-09-23 16:53:09 -07:00
Bryan Atsatt 668e281d2e Interrupt event loop on close() if keepAlive is null. 2014-09-22 16:56:35 -07:00
akhil 09d3237b3b revert usage of lambda expression to avoid problems with some tools 2014-09-17 15:47:55 -07:00
akhil 77cb1b1201 update README, expose exit code for embedders, add help & jar options 2014-09-11 12:19:42 -07:00
akhil 7eb7d79a89 upgrade to v0.10.31 2014-09-09 16:30:13 -07:00
akhil b2a7f4e162 simplify regex to be able to pass down jvm args and system properties 2014-09-05 12:16:14 -07:00
akhil f37d461f26 license consistency, minimal netrics factory impl, cleanup
Reviewed-by: batsatt
2014-09-04 16:40:37 -07:00
akhil 3d851ad083 allow args to be passed down to the test runner, restore -Xcheck:jni 2014-09-02 11:26:16 -07:00
Irfan Ahmed 528d8173ba Avatar Metrics
- added a MetricsService to collect Avatar metrics if a MetricsFactory is available
 - added interfaces for MetricsFactory and Metrics events that the service providers can implement
 - added hook for invoking the metrics service and gathering metrics if they are available
2014-08-12 16:20:43 -07:00
Bryan Atsatt 8c6d1923d5 Rename Loader.loadSucceeded() to onLoad() and ensure it is called correctly. 2014-07-23 13:22:17 -07:00
akhil a2ea76323a enable scripting mode (primarily to allow shebangs in modules) 2014-07-14 10:28:33 -07:00
akhil ea64912da8 record duration of each loop iteration (tick) 2014-07-09 13:46:41 -07:00
akhil 0319ae83c8 temporarily unset -Xcheck:jni due to JDK-8046668 2014-06-30 21:34:44 -07:00
akhil 773cc30e97 reimplement uptime for enhanced compatibility 2014-06-27 15:54:05 -07:00
akhil a201aeae85 windows tweaks 2014-06-06 11:37:22 -07:00
akhil bb8b83adc5 reuse exitVM permission to allow user scripts to terminate themselves 2014-06-05 12:19:02 -07:00
akhil 11dc5bdd11 secure process.exit and _tickCallback, adjust test permissions 2014-06-05 12:09:34 -07:00
akhil 60793b1ccd reformat fs errors, ensure syscall & path are included in message when present 2014-06-03 11:46:19 -07:00
akhil 10bd8cf2b8 process.exit in avatar.js does not exit immediately 2014-05-28 09:50:27 -07:00
akhil 4aa5e5cda8 write parts of nashorn's ConsString without first flattening 2014-05-27 20:19:34 -07:00
akhil db07f12a58 adjustment of line numbers in debug mode is no longer needed
Contributed-by: jaroslav.tulach@oracle.com
2014-05-15 21:42:08 -07:00
akhil f0bf37543e process.exit in avatar does not exit abruptly 2014-05-15 15:47:10 -07:00
akhil d9cecef95c ensure jvm exits with code specified to process.exit when not embedded 2014-05-14 23:43:48 -07:00
akhil 01bbfe9801 exclude some tests that do not work in nofork mode 2014-05-14 22:30:58 -07:00
akhil 97a06d1391 process.exit stops its event loop for a graceful exit 2014-05-14 21:55:51 -07:00
akhil 0fa303c507 enforce timeout in nofork mode 2014-05-14 15:28:06 -07:00
akhil 5ddc63ef25 ensure pool threads terminate quickly on shutdown 2014-05-14 15:25:01 -07:00
akhil 3b2369604b exclude tests that do not work in same vm, support path globs 2014-05-06 22:22:50 -07:00
akhil da948e597b enable --const-as-var if available
Reviewed-by: sundararajan.athijegannathan@oracle.com
2014-05-06 10:08:13 -07:00
akhil ff81a4d150 experimental feature to run tests in the same vm 2014-05-05 22:36:01 -07:00
akhil e6866b876d port the test runner to java, run with 'ant test-simple' 2014-05-05 20:58:41 -07:00
akhil 450866cfd0 optimization - bypass the utf encoder if str does not have any multi-byte chars 2014-05-01 15:24:25 -07:00
Bryan Atsatt 58266a9b0f Cleanup HandleFactory API and usage. Reviewed by Akhil. 2014-04-21 12:51:50 -07:00
akhil 01c59bde62 use handle factory to create handles 2014-04-17 14:49:18 -07:00
akhil f959b9898a implement PollHandle 2014-04-15 17:19:53 -07:00
Bryan Atsatt 942a03849e Support getContentLength() and getLastModified(), plus some cleanup. Reviewed by Akhil. 2014-04-12 13:33:07 -07:00
akhil c000711dc2 create file handle via handle factory 2014-04-09 11:15:26 -07:00
akhil 456c008f15 use handle factory to create handles 2014-04-08 22:52:15 -07:00
akhil 0b69b17446 flatten jvmArgs 2014-04-05 16:56:46 -07:00
akhil 033e1ec21b pass on args and properties on to the jvm 2014-04-05 16:49:27 -07:00
Bryan Atsatt e6cb648a87 Separate keepAlive behavior from thread pool sharing. 2014-04-03 19:58:43 -07:00