8151322: Implement os::set_native_thread_name() on Solaris

Reviewed-by: sla, kbarrett, gziemski
This commit is contained in:
David Holmes 2016-04-10 21:34:47 -04:00
parent 6cec4d5047
commit 7b27547030
3 changed files with 22 additions and 4 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -122,6 +122,9 @@ class Solaris {
static int _SIGasync; // user-overridable ASYNC_SIGNAL
static void set_SIGasync(int newsig) { _SIGasync = newsig; }
typedef int (*pthread_setname_np_func_t)(pthread_t, const char*);
static pthread_setname_np_func_t _pthread_setname_np;
public:
// Large Page Support--ISM.
static bool largepage_range(char* addr, size_t size);