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

Windows: fix writing java.log #6100

Closed
wants to merge 3 commits into from

Conversation

laszlocsomor
Copy link
Contributor

Fixes #6099
Fixes #6098
Related to #2576

Change-Id: Iabff91cca715d08e2977234e8615b2e0bf8a5dbc

Fixes bazelbuild#6099
Fixes bazelbuild#6098
Related to bazelbuild#2576

Change-Id: Iabff91cca715d08e2977234e8615b2e0bf8a5dbc
@laszlocsomor
Copy link
Contributor Author

This patch also fixes the uncaught exception in <output_base>/server/jvm.out that I've been aware of for a while but (a) I couldn't yet diagnose it and (b) it didn't seem to create any problems.

// See https://github.com/bazelbuild/bazel/issues/2576 and
// https://github.com/bazelbuild/bazel/issues/6098
std::string::size_type pos = 0;
while (true) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this quadratic? Mind you, not that the strings in question are very long (cue PATH_MAX), but if there is a simple way...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're fully right. Let me fix that.

Change-Id: Ie2afe0b44c9f54f1339bb4850fa5c3a1dc61c4e0
src/main/cpp/util/path_windows.cc Outdated Show resolved Hide resolved
src/main/cpp/util/path_windows.cc Show resolved Hide resolved
src/main/cpp/util/path_windows.cc Show resolved Hide resolved
Change-Id: Ib55e01b5a82315d2a5f1a861f56079013d1cfec8
@bazel-io bazel-io closed this in 9323c57 Sep 7, 2018
@laszlocsomor laszlocsomor deleted the javalog branch September 10, 2018 06:55
laurentlb pushed a commit that referenced this pull request Sep 10, 2018
Fixes #6099
Fixes #6098
Related to #2576

Change-Id: Iabff91cca715d08e2977234e8615b2e0bf8a5dbc

Closes #6100.

Change-Id: Ib55e01b5a82315d2a5f1a861f56079013d1cfec8
PiperOrigin-RevId: 211983456
laurentlb pushed a commit that referenced this pull request Sep 10, 2018
Fixes #6099
Fixes #6098
Related to #2576

Change-Id: Iabff91cca715d08e2977234e8615b2e0bf8a5dbc

Closes #6100.

Change-Id: Ib55e01b5a82315d2a5f1a861f56079013d1cfec8
PiperOrigin-RevId: 211983456
laurentlb pushed a commit that referenced this pull request Sep 12, 2018
Fixes #6099
Fixes #6098
Related to #2576

Change-Id: Iabff91cca715d08e2977234e8615b2e0bf8a5dbc

Closes #6100.

Change-Id: Ib55e01b5a82315d2a5f1a861f56079013d1cfec8
PiperOrigin-RevId: 211983456
laurentlb pushed a commit that referenced this pull request Sep 12, 2018
Fixes #6099
Fixes #6098
Related to #2576

Change-Id: Iabff91cca715d08e2977234e8615b2e0bf8a5dbc

Closes #6100.

Change-Id: Ib55e01b5a82315d2a5f1a861f56079013d1cfec8
PiperOrigin-RevId: 211983456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants