fork download
  1. void Sql::executeSql(const v8::FunctionCallbackInfo<v8::Value>& args) {
  2. Isolate* isolate = Isolate::GetCurrent();
  3.  
  4. for (size_t c = 0; c < 1000000; c++) {
  5. HandleScope scope(isolate);
  6. Local<Array> result = Array::New(isolate, 0);
  7. for (size_t i = 0; i<100; i++) {
  8. result->Set(i++, String::NewFromUtf8(isolate, "haha"));
  9. }
  10. }
  11. args.GetReturnValue().Set(true);
  12. }
  13.  
  14. <--- Last few GCs --->
  15.  
  16. 37888 ms: Scavenge 1399.3 (1457.0) -> 1399.3 (1457.0) MB, 52.9 / 0 ms [allocation failure].
  17. 37941 ms: Scavenge 1399.3 (1457.0) -> 1399.3 (1457.0) MB, 52.9 / 0 ms [allocation failure].
  18. 37994 ms: Scavenge 1399.3 (1457.0) -> 1399.3 (1457.0) MB, 53.0 / 0 ms [allocation failure].
  19. 39038 ms: Mark-sweep 1399.3 (1457.0) -> 1399.3 (1457.0) MB, 1043.9 / 0 ms [last resort gc].
  20. 40107 ms: Mark-sweep 1399.3 (1457.0) -> 1399.3 (1457.0) MB, 1069.4 / 0 ms [last resort gc].
  21.  
  22.  
  23. <--- JS stacktrace --->
  24.  
  25. ==== JS stack trace =========================================
  26.  
  27. Security context: 0x642a76537399 <JS Object>
  28.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:6: error: 'Sql' has not been declared
 void Sql::executeSql(const v8::FunctionCallbackInfo<v8::Value>& args) {
      ^
prog.cpp:1:28: error: 'v8' does not name a type
 void Sql::executeSql(const v8::FunctionCallbackInfo<v8::Value>& args) {
                            ^
prog.cpp:1:52: error: expected unqualified-id before '<' token
 void Sql::executeSql(const v8::FunctionCallbackInfo<v8::Value>& args) {
                                                    ^
prog.cpp:1:52: error: expected ')' before '<' token
prog.cpp:1:52: error: expected initializer before '<' token
stdout
Standard output is empty