hotspot/src/os/linux/vm/os_linux.inline.hpp
changeset 34633 2a6c7c7b30a7
parent 27400 c5955f4b7c84
child 35479 62c12ca7a45e
equal deleted inserted replaced
34632:bf3518bba285 34633:2a6c7c7b30a7
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    31 
    31 
    32 #include <unistd.h>
    32 #include <unistd.h>
    33 #include <sys/socket.h>
    33 #include <sys/socket.h>
    34 #include <sys/poll.h>
    34 #include <sys/poll.h>
    35 #include <netdb.h>
    35 #include <netdb.h>
    36 
       
    37 inline void* os::thread_local_storage_at(int index) {
       
    38   return pthread_getspecific((pthread_key_t)index);
       
    39 }
       
    40 
    36 
    41 // File names are case-sensitive on windows only
    37 // File names are case-sensitive on windows only
    42 inline int os::file_name_strcmp(const char* s1, const char* s2) {
    38 inline int os::file_name_strcmp(const char* s1, const char* s2) {
    43   return strcmp(s1, s2);
    39   return strcmp(s1, s2);
    44 }
    40 }