equal
deleted
inserted
replaced
2837 char * next_alloc_addr = p_buf; |
2837 char * next_alloc_addr = p_buf; |
2838 HANDLE hProc = GetCurrentProcess(); |
2838 HANDLE hProc = GetCurrentProcess(); |
2839 |
2839 |
2840 #ifdef ASSERT |
2840 #ifdef ASSERT |
2841 // Variable for the failure injection |
2841 // Variable for the failure injection |
2842 long ran_num = os::random(); |
2842 int ran_num = os::random(); |
2843 size_t fail_after = ran_num % bytes; |
2843 size_t fail_after = ran_num % bytes; |
2844 #endif |
2844 #endif |
2845 |
2845 |
2846 int count=0; |
2846 int count=0; |
2847 while (bytes_remaining) { |
2847 while (bytes_remaining) { |