public static void write(long l) { boolean negative = l < 0; int nextDigit; char nextChar; int index = TEMP_BUFFER_SIZE - 1; char [] intBuffer = getIntBuffer();  nextDigit = (int)(l % 10); nextChar = Barriers.getArrayNoBarrier(hexDigitCharacter, negative ? - nextDigit : nextDigit); Barriers.setArrayNoBarrier(intBuffer, index--, nextChar); l = l / 10;  while (l != 0) { nextDigit = (int)(l % 10); nextChar = Barriers.getArrayNoBarrier(hexDigitCharacter, negative ? - nextDigit : nextDigit); Barriers.setArrayNoBarrier(intBuffer, index--, nextChar); l = l / 10; }  if (negative) Barriers.setArrayNoBarrier(intBuffer, index--, '-');  for (index++; index < TEMP_BUFFER_SIZE; index++) add(Barriers.getArrayNoBarrier(intBuffer, index));
public static void write(boolean b) { write(b ? "true" : "false");
  public static void write(long l) {    boolean negative = l < 0;    int nextDigit;    char nextChar;    int index = TEMP_BUFFER_SIZE - 1;    char [] intBuffer = getIntBuffer();        nextDigit = (int)(l % 10);    nextChar = Barriers.getArrayNoBarrier(hexDigitCharacter,                                              negative                                              ? - nextDigit                                              : nextDigit);    Barriers.setArrayNoBarrier(intBuffer, index--, nextChar);    l = l / 10;        while (l != 0) {      nextDigit = (int)(l % 10);      nextChar = Barriers.getArrayNoBarrier(hexDigitCharacter,                                                negative                                                ? - nextDigit                                                : nextDigit);      Barriers.setArrayNoBarrier(intBuffer, index--, nextChar);      l = l / 10;    }        if (negative)      Barriers.setArrayNoBarrier(intBuffer, index--, '-');        for (index++; index < TEMP_BUFFER_SIZE; index++)      add(Barriers.getArrayNoBarrier(intBuffer, index));  }