Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json::Reader is not thread safe #394

Closed
tekknolagi opened this issue Dec 9, 2015 · 4 comments
Closed

Json::Reader is not thread safe #394

tekknolagi opened this issue Dec 9, 2015 · 4 comments
Labels

Comments

@tekknolagi
Copy link

There is a global variable, stackDepth_g, that can get incremented by many threads and blow the artificial stack limit.

My team ran into this problem when trying to highly parallelize our ray tracer. I am trying to submit a pull request soon.

@cdunn2001
Copy link
Contributor

See comment in #395.

I'm curious: Why are you using the old Reader API? Is there a problem with CharReaderBuilder? Or are you still using an old version (i.e. 0.y.z).

@tekknolagi
Copy link
Author

I don't know how, but my team completely missed the fact that Reader was
deprecated. I don't know if there is a problem with CharReaderBuilder
because we haven't explored it.

On Thu, Dec 24, 2015, 18:30 Christopher Dunn notifications@github.com
wrote:

See comment in #395
#395.

I'm curious: Why are you using the old Reader API? Is there a problem
with CharReaderBuilder? Or are you still using an old version (i.e. 0.y.z
).


Reply to this email directly or view it on GitHub
#394 (comment)
.

@cdunn2001
Copy link
Contributor

Reader is thorny. We'd remove it completely (from 1.y.z) but it's popular. Most C++ coders don't like builders. It's an area where Java coders have a good idea.

@tekknolagi
Copy link
Author

Interesting. We'll look into CharReaderBuilder. Thank you for explaining!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants