This repository has been archived by the owner on Feb 27, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove extra logging, put the name field back, and update README
- Loading branch information
Showing
4 changed files
with
22 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,6 @@ | ||
This is about the simplest reduction you can get for using eio_custom. | ||
|
||
Unfortunately, it blows up on Solaris, and I can't seem to figure out why. | ||
|
||
To run: | ||
|
||
node-waf configure build && node test.js | ||
|
||
Macs and Linux are like: | ||
|
||
js 0 before | ||
>>>DoSomethingAsync 1 2 | ||
>>>about to eio_custom, sr=6438512 | ||
>>>returning | ||
>>>DoSomething 6438544,6438512 | ||
>>>sr pointer 6438512 | ||
>>>about to sleep | ||
>>>read req, about to set result | ||
>>>x 1 | ||
>>>y 2 | ||
>>>returning | ||
>>>DoSomething_After 6438544 | ||
js 2016 null 3 | ||
|
||
|
||
But solaris is all: | ||
|
||
js 0 before | ||
>>>DoSomethingAsync 1 2 | ||
>>>about to eio_custom, sr=139274000 | ||
>>>returning | ||
>>>DoSomething 139241808,1024 | ||
>>>sr pointer 1024 | ||
>>>about to sleep | ||
>>>read req, about to set result | ||
Segmentation Fault (core dumped) | ||
|
||
Take a look again. Note that the req->data pointer is getting set from | ||
some big number which corresponds to a valid memory location assigned | ||
by malloc, to 1024, which isn't valid at all. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
var nas = require("./build/default/nas") | ||
, start = Date.now() | ||
|
||
console.log("js "+(Date.now() - start), "before") | ||
nas.doSomething(1, 2, function (er, res) { | ||
console.log("js "+(Date.now() - start), er, res) | ||
console.log("js "+(Date.now() - start), "before hello") | ||
nas.doSomething(1, 2, "hello", function (er, res, n) { | ||
console.log("js "+(Date.now() - start), er, res, n) | ||
}) | ||
console.log("js "+(Date.now() - start), "before goodbye") | ||
nas.doSomething(3, 4, "goodbye", function (er, res, n) { | ||
console.log("js "+(Date.now() - start), er, res, n) | ||
}) | ||
// console.log(Date.now(), "before goodbye") | ||
// nas.doSomething(3, 4, "goodbye", function (er, res, n) { | ||
// console.log(Date.now(), er, res, n) | ||
// }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters