Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
art
Commits
afdd4ce4
Commit
afdd4ce4
authored
8 years ago
by
Mathieu Chartier
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Download
Plain Diff
Merge "Various improvements to stack walking speed"
parents
64d324df
90c5a9b8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
runtime/art_method-inl.h
runtime/art_method-inl.h
+3
-2
runtime/art_method.h
runtime/art_method.h
+0
-1
runtime/bit_memory_region.h
runtime/bit_memory_region.h
+1
-1
runtime/class_linker-inl.h
runtime/class_linker-inl.h
+1
-1
No files found.
runtime/art_method-inl.h
View file @
afdd4ce4
...
...
@@ -374,9 +374,10 @@ inline mirror::DexCache* ArtMethod::GetDexCache() {
}
}
template
<
ReadBarrierOption
kReadBarrierOption
>
inline
bool
ArtMethod
::
IsProxyMethod
()
{
return
GetDeclaringClass
<
kReadBarrierOption
>
()
->
IsProxyClass
();
// Avoid read barrier since the from-space version of the class will have the correct proxy class
// flags since they are constant for the lifetime of the class.
return
GetDeclaringClass
<
kWithoutReadBarrier
>
()
->
IsProxyClass
();
}
inline
ArtMethod
*
ArtMethod
::
GetInterfaceMethodIfProxy
(
PointerSize
pointer_size
)
{
...
...
This diff is collapsed.
Click to expand it.
runtime/art_method.h
View file @
afdd4ce4
...
...
@@ -251,7 +251,6 @@ class ArtMethod FINAL {
return
(
GetAccessFlags
()
&
kAccVarargs
)
!=
0
;
}
template
<
ReadBarrierOption
kReadBarrierOption
=
kWithReadBarrier
>
bool
IsProxyMethod
()
REQUIRES_SHARED
(
Locks
::
mutator_lock_
);
bool
SkipAccessChecks
()
{
...
...
This diff is collapsed.
Click to expand it.
runtime/bit_memory_region.h
View file @
afdd4ce4
...
...
@@ -26,7 +26,7 @@ namespace art {
class
BitMemoryRegion
FINAL
:
public
ValueObject
{
public:
BitMemoryRegion
()
=
default
;
BitMemoryRegion
(
MemoryRegion
region
,
size_t
bit_offset
,
size_t
bit_size
)
{
ALWAYS_INLINE
BitMemoryRegion
(
MemoryRegion
region
,
size_t
bit_offset
,
size_t
bit_size
)
{
bit_start_
=
bit_offset
%
kBitsPerByte
;
const
size_t
start
=
bit_offset
/
kBitsPerByte
;
const
size_t
end
=
(
bit_offset
+
bit_size
+
kBitsPerByte
-
1
)
/
kBitsPerByte
;
...
...
This diff is collapsed.
Click to expand it.
runtime/class_linker-inl.h
View file @
afdd4ce4
...
...
@@ -233,7 +233,7 @@ template<ReadBarrierOption kReadBarrierOption>
ArtMethod
*
ClassLinker
::
FindMethodForProxy
(
ObjPtr
<
mirror
::
Class
>
proxy_class
,
ArtMethod
*
proxy_method
)
{
DCHECK
(
proxy_class
->
IsProxyClass
());
DCHECK
(
proxy_method
->
IsProxyMethod
<
kReadBarrierOption
>
());
DCHECK
(
proxy_method
->
IsProxyMethod
());
{
Thread
*
const
self
=
Thread
::
Current
();
ReaderMutexLock
mu
(
self
,
*
Locks
::
dex_lock_
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment