diff options
author | Eric Hartmann <hartmann.eric@gmail.com> | 2015-02-21 09:41:31 +0100 |
---|---|---|
committer | Eric Hartmann <hartmann.eric@gmail.com> | 2015-02-21 09:41:31 +0100 |
commit | d50911dd0c6e8ce6618efc15acfdd52f082c9358 (patch) | |
tree | 9057ece11f13e84d34495c3249a9562fbf61c24b /server | |
parent | 69d136d3a71e36521ddd56d0e5b037fb7472c95d (diff) | |
download | sonarqube-d50911dd0c6e8ce6618efc15acfdd52f082c9358.tar.gz sonarqube-d50911dd0c6e8ce6618efc15acfdd52f082c9358.zip |
Fix cleaning of shared memory
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java b/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java index c9eafb30e54..14405940d67 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java +++ b/server/sonar-process/src/main/java/org/sonar/process/ProcessCommands.java @@ -145,8 +145,8 @@ public class ProcessCommands { } private void cleanData() { - for (int i = offset(); i < BYTE_LENGTH_FOR_ONE_PROCESS; i++) { - mappedByteBuffer.put(i, EMPTY); + for (int i = 0; i < BYTE_LENGTH_FOR_ONE_PROCESS; i++) { + mappedByteBuffer.put(offset() + i, EMPTY); } } |