Skip to content

Commit

Permalink
We now have a configuration flag to detect a windows build, use it to…
Browse files Browse the repository at this point in the history
… determine whether to use a direct mapped byte buffer.
  • Loading branch information
Ian Rogers committed May 31, 2009
1 parent f04f141 commit 9fc2b75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ public class BootImage extends BootImageWriterMessages

/**
* Use mapped byte buffers? We need to truncate the byte buffer
* before writing it to disk. This operation is support on UNIX but
* before writing it to disk. This operation is supported on UNIX but
* not Windows.
*/
private static final boolean mapByteBuffers = false;
private static final boolean mapByteBuffers = !VM.BuildForWindows;

/**
* @param ltlEndian write words low-byte first?
Expand Down

0 comments on commit 9fc2b75

Please sign in to comment.