Bit field-isa pointer

I. isa pointer structure union isa_t { isa_t() { } isa_t(uintptr_t value) : bits(value) { } Class cls; uintptr_t bits; #if SUPPORT_PACKED_ISA // extra_rc must be the MSB-most field (so it matches carry/overflow flags) // nonpointer must be the LSB (fixme or get rid of it) // shiftcls must occupy th ...

Posted by robinhood on Wed, 09 Oct 2019 15:36:21 -0700

Experience Recall (Pure Manual) => Python Version - Docker Uses Appium Simple Experiments

Docker-Appium Installation Github docker-appium address: https://github.com/appium/app... Create temporary containers (for simple command testing) docker run --privileged -d -p 4723:4723 -v ~/.android:/root/.android -v /dev/bus/usb:/dev/bus/usb --name container-appium appium/appium If using simulator, etc. (non-USB connection) The adb of the ...

Posted by joejoejoe on Tue, 01 Oct 2019 03:38:40 -0700

A Simple Example of Spring Dependency Injection (DI)

What is Control Inversion and Dependency Injection The full English name of Inversion of Control is IoC. It makes it possible to form a loosely coupled structure between program components and classes. Developers need to create instances of objects before using instances of classes. But IoC entrusts ...

Posted by gerry123 on Thu, 26 Sep 2019 02:11:50 -0700

iOS crash file parsing and common Exception types

Links to the original text: https://www.jianshu.com/p/ce071aa3ffa8   crash file When crash occurs in running APP, if there is a corresponding handler or a third party crash SDK in the code, they will collect the relevant running stack, ...

Posted by slava_php on Mon, 16 Sep 2019 22:36:29 -0700

[Write an Operating System] 1 - hello world Comes Back

Catalog objective Phase 1: Implementing with Binary Editor Stage 2: Writing in Assembly Language Phase 3: Improving assembler Harvest Notes objective Develop a helloworld applet based on the underlying hardware. Phase 1: Implementing with Binary Editor First download a binary editor software ...

Posted by everisk on Mon, 12 Aug 2019 04:25:39 -0700

The pits encountered in the course of the project

Viewpager's adapter @Override public Object instantiateItem(ViewGroup container, int position) { BasePager basePager=basePagers.get(position);//Examples of each subpage View rootView=basePager.rootView;//Represents individual sub-pages //Call the initData () method for each page basePa ...

Posted by ogge1 on Sat, 13 Jul 2019 15:47:21 -0700

iOS Development-Protocol Protocol and Delegate Value Transfer

Preface: Because Object-C does not support multi-inheritance, it is often replaced by Protocol. Protocol can only define a common set of interfaces, but it can not provide specific implementation methods. That is to say, it only tells you what to do, but it doesn't care what to do. When a class wants to use a Protocol, it must abide by the prot ...

Posted by AbeFroman on Sun, 07 Jul 2019 16:34:05 -0700

Summary of Android adb command usage

First, write in front 1. I belong to a rookie now. Every time I encounter a problem or a bug, I open android studio and run the code. Then I start to find the last breakpoint of the activity or fragment or log to debug, which makes it slow and time-consuming to locate the problem. 2. Look at those bulls, hit the terminal directly, clic ...

Posted by strangebeer on Thu, 04 Jul 2019 12:48:12 -0700

Wouldn't there be OOM using Metaspace in Java 8?

Foreword: In Java 8, the emergence of Metaspace prevents us from encountering the problem of java.lang.OutOfMemoryError: PermGen, but we should remember that this new feature will not eliminate the memory leak caused by class loading. (1) A brief introduction to Metaspace (1) Memory model: Most class metadata are allocated in local memory, a ...

Posted by ow-phil on Thu, 13 Jun 2019 16:30:21 -0700

Detailed Notification Drawer Notification Notice for Android

// Learn the content of this chapter you need to know two important points of knowledge content! 1. Problems that Custom Notification does not display Solution: (1) Forget notify() notification method (2) Set icon icon 2. If the API is 16, replace getNotification() with build() 2. Pending Intent has a getActivity method Pending Intent ...

Posted by beckjo1 on Sun, 26 May 2019 12:58:45 -0700