File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2015, 2023 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2015, 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
25
25
#include " gc/z/zUtils.hpp"
26
26
#include " runtime/nonJavaThread.hpp"
27
27
28
- #include < algorithm>
29
-
30
28
const char * ZUtils::thread_name () {
31
29
const Thread* const thread = Thread::current ();
32
30
if (thread->is_Named_thread ()) {
@@ -38,5 +36,7 @@ const char* ZUtils::thread_name() {
38
36
}
39
37
40
38
void ZUtils::fill (uintptr_t * addr, size_t count, uintptr_t value) {
41
- std::fill_n (addr, count, value);
39
+ for (size_t i = 0 ; i < count; ++i) {
40
+ addr[i] = value;
41
+ }
42
42
}
You can’t perform that action at this time.
0 commit comments